Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 429 error in /translate endpoint (changed TLS fingerprint) #161

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

96368a
Copy link
Contributor

@96368a 96368a commented Nov 29, 2024

I discovered that the 429 error with the /translate endpoint seemed to be caused by the TLS fingerprint of the Golang http library being recognized. Therefore, I used the github.com/imroc/req library to spoof the TLS fingerprint. Afterward, /translate worked well on both my computer and server.

Note: Testing revealed that incorporating the github.com/imroc/req library increased the binary file size by approximately 5MB. It might be worth considering using a simpler library like github.com/bogdanfinn/tls-client.

@missuo missuo merged commit 547c735 into OwO-Network:main Nov 29, 2024
2 checks passed
@Rikj000
Copy link

Rikj000 commented Nov 29, 2024

Does this solve #149? 🤔

@NuanRMxi
Copy link

Does this solve #149? 🤔

I compiled and tested and that pull request resolved #149

@missuo
Copy link
Member

missuo commented Nov 30, 2024

@96368a Thank you for your contribution. 🎉

close #149 #160 #152 #154 #159

This was referenced Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants